<template>
  <div class="not-found">
    <div class="content">
      <h1>404</h1>
      <p>抱歉，您访问的页面不存在</p>
      <router-link to="/" class="back-home"> 返回首页 </router-link>
    </div>
  </div>
</template>

<script setup>
// 组件逻辑
</script>

<style lang="scss" scoped>
.not-found {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #00668a;
  color: #fff;

  .content {
    text-align: center;

    h1 {
      font-size: 120px;
      margin: 0;
      font-weight: bold;
      color: #fff;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    p {
      font-size: 24px;
      margin: 20px 0 40px;
      color: #fff;
    }

    .back-home {
      display: inline-block;
      padding: 12px 30px;
      background-color: #004e71;
      color: #fff;
      text-decoration: none;
      border-radius: 25px;
      font-size: 18px;
      transition: all 0.3s ease;

      &:hover {
        background-color: #003d5a;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }
    }
  }
}
</style>